package com.sharecode.stock.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sharecode.stock.repository.StockHistoryDataRepository;
import com.sharecode.stock.vo.stock.StockHistoryData;

@Service
public class StockHistoryDataService {
	@Autowired
	private StockHistoryDataRepository repository;

	public void save(StockHistoryData stockHistoryData) {
		repository.save(stockHistoryData);
	}

	public void saveAll(List<StockHistoryData> stockHistoryDatas) {
		repository.saveAll(stockHistoryDatas);
	}
}
